package cn.wolfcode.service;


import cn.wolfcode.common.domain.UserInfo;
import cn.wolfcode.domain.OrderInfo;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.mq.OrderTimeoutMessage;

import java.util.Map;

/**
 * Created by wolfcode
 */
public interface IOrderInfoService {

    OrderInfo selectByUserIdAndSeckillId(Long phone, Long seckillId, Integer time);

    String doSeckill(Long userId, SeckillProductVo vo);

    OrderInfo findById(String orderNo);

    void rollBackTran(Long userPhone, Long seckillId, Integer time);

    void checkOrderPayTimeout(OrderTimeoutMessage message);

    String aliPay(String orderNo, Long userId);
}
